﻿using System.Globalization;
using System.Threading;
using System.Windows;
using System.Windows.Markup;

namespace DiasPlanejamento
{
    /// <summary>
    ///   Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("pt-BR");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("pt-BR");
            FrameworkElement.LanguageProperty.OverrideMetadata(typeof (FrameworkElement), new FrameworkPropertyMetadata(
                                                                                              XmlLanguage.GetLanguage(
                                                                                                  CultureInfo.
                                                                                                      CurrentCulture.
                                                                                                      IetfLanguageTag)));
        }
    }
}